package cn.edu.scau.cmi.luoxintai.FactoryMethod;


public class MainFactory {
	Product pp =null;
	public  void Creat(int a) {
		switch(a) {
		case 1:pp = new PorkMeatFactory();
			   pp.Creat();
			   break;
		case 2:pp = new BeefMeatFactory();
			   pp.Creat();
			   break;
		case 3:pp = new ChickenMeatFactory();
			   pp.Creat();
			   break;
		default:System.out.printf("Sorry,we have not what you order\nPlease try again.\n");
				break;
		}

	}

}
